package com.example.demo.Services.impl;

import com.example.demo.Services.UserService;
import com.example.demo.entity.User;
import com.example.demo.mapper.userMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * ClassName:UserServicesImpl
 * Package:com.example.demo.Services.impl
 * Description:
 *
 * @date:2019/12/13 10:48
 * @author:
 */
@Service
@Transactional
public class UserServicesImpl implements UserService {

    @Autowired
    private userMapper userMapper;

    @Override
    public User findByname(String name) {
        User user =  userMapper.findByname(name);
        return user;
    }
}
